<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Simulateur du jeu d&#39;instructions d&#39;un processeur simple: Référence du fichier error.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.7.4 -->
<script type="text/javascript">
function hasClass(ele,cls) {
  return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}

function addClass(ele,cls) {
  if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}

function removeClass(ele,cls) {
  if (hasClass(ele,cls)) {
    var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
    ele.className=ele.className.replace(reg,' ');
  }
}

function toggleVisibility(linkObj) {
 var base = linkObj.getAttribute('id');
 var summary = document.getElementById(base + '-summary');
 var content = document.getElementById(base + '-content');
 var trigger = document.getElementById(base + '-trigger');
 if ( hasClass(linkObj,'closed') ) {
   summary.style.display = 'none';
   content.style.display = 'block';
   trigger.src = 'open.png';
   removeClass(linkObj,'closed');
   addClass(linkObj,'opened');
 } else if ( hasClass(linkObj,'opened') ) {
   summary.style.display = 'block';
   content.style.display = 'none';
   trigger.src = 'closed.png';
   removeClass(linkObj,'opened');
   addClass(linkObj,'closed');
 }
 return false;
}
</script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Simulateur du jeu d'instructions d'un processeur simple</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li><a href="dirs.html"><span>Répertoires</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Portée&#160;globale</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('error_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#enum-members">Énumérations</a> &#124;
<a href="#func-members">Fonctions</a>  </div>
  <div class="headertitle">
<div class="title">Référence du fichier error.h</div>  </div>
</div>
<div class="contents">

<p>Messages et codes d'erreurs.  
<a href="#details">Plus de détails...</a></p>
<div class="textblock"><code>#include &lt;stdlib.h&gt;</code><br/>
</div><div class="textblock"><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png"/> Graphe des dépendances par inclusion de error.h:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="error_8h__incl.png" border="0" usemap="#error_8h" alt=""/></div>
<map name="error_8h" id="error_8h">
</map>
</div>
</div>
<p><a href="error_8h_source.html">Aller au code source de ce fichier.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="enum-members"></a>
Énumérations</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5">Error</a> { <br/>
&#160;&#160;<a class="el" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5ac0bd58270c4d98771b5a52ee7b46ff82">ERR_NOERROR</a> =  0, 
<a class="el" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5a5c708decdcbd7d8c9fddd8d9e75828a1">ERR_UNKNOWN</a>, 
<a class="el" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5aeb345404de9786d0956657072a6c552e">ERR_ILLEGAL</a>, 
<a class="el" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5af019075ff6d5f0b03e50a7a221c456ab">ERR_CONDITION</a>, 
<br/>
&#160;&#160;<a class="el" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5ab6b77dff11bf3f9ea5db7ece610af021">ERR_IMMEDIATE</a>, 
<a class="el" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5a054107804ee0194e0795c8030c8dbb6c">ERR_SEGTEXT</a>, 
<a class="el" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5a89c234e9ccacaa205398522f841a0915">ERR_SEGDATA</a>, 
<a class="el" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5af9241804ffe147bd31661731289191d7">ERR_SEGSTACK</a>
<br/>
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Erreur d'exécution.  <a href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5">Plus de détails...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="error_8h.html#af6ea07812363481c623a23ea26fbf8ed">Warning</a> { <a class="el" href="error_8h.html#af6ea07812363481c623a23ea26fbf8eda5a5baa88988dd74ee8359d6e504c6d77">WARN_HALT</a>
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Codes d'avertissement.  <a href="error_8h.html#af6ea07812363481c623a23ea26fbf8ed">Plus de détails...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Fonctions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="error_8h.html#a531bb138b38aef758b45a442aa53938a">error</a> (<a class="el" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5">Error</a> err, unsigned addr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Affichage d'une erreur et fin du simulateur.  <a href="#a531bb138b38aef758b45a442aa53938a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="error_8h.html#aec2872edfc57849ea2557178dc2b2673">warning</a> (<a class="el" href="error_8h.html#af6ea07812363481c623a23ea26fbf8ed">Warning</a> warn, unsigned addr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Affichage d'un avertissement.  <a href="#aec2872edfc57849ea2557178dc2b2673"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Description détaillée</h2>
<div class="textblock"><p>Messages et codes d'erreurs. </p>

<p>Définition dans le fichier <a class="el" href="error_8h_source.html">error.h</a>.</p>
</div><hr/><h2>Documentation du type de l'énumération</h2>
<a class="anchor" id="a2c3e4bb40f36b262a5214e2da2bca9c5"></a><!-- doxytag: member="error.h::Error" ref="a2c3e4bb40f36b262a5214e2da2bca9c5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5">Error</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Erreur d'exécution. </p>
<p>Ce sont les différentes sortes d'erreur rencontrées lors du décodage ou de l'exécution des instructions. Elles sont toutes fatales et provoquent la terminaison du programme (du programme simulé comme du simulateur lui-même !). </p>
<dl><dt><b>Valeurs énumérées: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a2c3e4bb40f36b262a5214e2da2bca9c5ac0bd58270c4d98771b5a52ee7b46ff82"></a><!-- doxytag: member="ERR_NOERROR" ref="a2c3e4bb40f36b262a5214e2da2bca9c5ac0bd58270c4d98771b5a52ee7b46ff82" args="" -->ERR_NOERROR</em>&nbsp;</td><td>
<p>Pas d'erreur. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a2c3e4bb40f36b262a5214e2da2bca9c5a5c708decdcbd7d8c9fddd8d9e75828a1"></a><!-- doxytag: member="ERR_UNKNOWN" ref="a2c3e4bb40f36b262a5214e2da2bca9c5a5c708decdcbd7d8c9fddd8d9e75828a1" args="" -->ERR_UNKNOWN</em>&nbsp;</td><td>
<p><a class="el" href="unionInstruction.html" title="Structure d&#39;une instruction.">Instruction</a> inconnue. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a2c3e4bb40f36b262a5214e2da2bca9c5aeb345404de9786d0956657072a6c552e"></a><!-- doxytag: member="ERR_ILLEGAL" ref="a2c3e4bb40f36b262a5214e2da2bca9c5aeb345404de9786d0956657072a6c552e" args="" -->ERR_ILLEGAL</em>&nbsp;</td><td>
<p><a class="el" href="unionInstruction.html" title="Structure d&#39;une instruction.">Instruction</a> illégale. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a2c3e4bb40f36b262a5214e2da2bca9c5af019075ff6d5f0b03e50a7a221c456ab"></a><!-- doxytag: member="ERR_CONDITION" ref="a2c3e4bb40f36b262a5214e2da2bca9c5af019075ff6d5f0b03e50a7a221c456ab" args="" -->ERR_CONDITION</em>&nbsp;</td><td>
<p>Condition illégale. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a2c3e4bb40f36b262a5214e2da2bca9c5ab6b77dff11bf3f9ea5db7ece610af021"></a><!-- doxytag: member="ERR_IMMEDIATE" ref="a2c3e4bb40f36b262a5214e2da2bca9c5ab6b77dff11bf3f9ea5db7ece610af021" args="" -->ERR_IMMEDIATE</em>&nbsp;</td><td>
<p>Valeur immédiate interdite. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a2c3e4bb40f36b262a5214e2da2bca9c5a054107804ee0194e0795c8030c8dbb6c"></a><!-- doxytag: member="ERR_SEGTEXT" ref="a2c3e4bb40f36b262a5214e2da2bca9c5a054107804ee0194e0795c8030c8dbb6c" args="" -->ERR_SEGTEXT</em>&nbsp;</td><td>
<p>Violation de taille du segment de texte. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a2c3e4bb40f36b262a5214e2da2bca9c5a89c234e9ccacaa205398522f841a0915"></a><!-- doxytag: member="ERR_SEGDATA" ref="a2c3e4bb40f36b262a5214e2da2bca9c5a89c234e9ccacaa205398522f841a0915" args="" -->ERR_SEGDATA</em>&nbsp;</td><td>
<p>Violation de taille du segment de données. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a2c3e4bb40f36b262a5214e2da2bca9c5af9241804ffe147bd31661731289191d7"></a><!-- doxytag: member="ERR_SEGSTACK" ref="a2c3e4bb40f36b262a5214e2da2bca9c5af9241804ffe147bd31661731289191d7" args="" -->ERR_SEGSTACK</em>&nbsp;</td><td>
<p>Violation de taille du segment de pile. </p>
</td></tr>
</table>
</dd>
</dl>

<p>Définition à la ligne <a class="el" href="error_8h_source.html#l00018">18</a> du fichier <a class="el" href="error_8h_source.html">error.h</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5ac0bd58270c4d98771b5a52ee7b46ff82" title="Pas d&#39;erreur.">ERR_NOERROR</a> = 0,    
    <a class="code" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5a5c708decdcbd7d8c9fddd8d9e75828a1" title="Instruction inconnue.">ERR_UNKNOWN</a>,    
    <a class="code" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5aeb345404de9786d0956657072a6c552e" title="Instruction illégale.">ERR_ILLEGAL</a>,    
    <a class="code" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5af019075ff6d5f0b03e50a7a221c456ab" title="Condition illégale.">ERR_CONDITION</a>,  
    <a class="code" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5ab6b77dff11bf3f9ea5db7ece610af021" title="Valeur immédiate interdite.">ERR_IMMEDIATE</a>,  
    <a class="code" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5a054107804ee0194e0795c8030c8dbb6c" title="Violation de taille du segment de texte.">ERR_SEGTEXT</a>,    
    <a class="code" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5a89c234e9ccacaa205398522f841a0915" title="Violation de taille du segment de données.">ERR_SEGDATA</a>,    
    <a class="code" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5af9241804ffe147bd31661731289191d7" title="Violation de taille du segment de pile.">ERR_SEGSTACK</a>,   
} <a class="code" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5" title="Erreur d&#39;exécution.">Error</a>; 
</pre></div>
</div>
</div>
<a class="anchor" id="af6ea07812363481c623a23ea26fbf8ed"></a><!-- doxytag: member="error.h::Warning" ref="af6ea07812363481c623a23ea26fbf8ed" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="error_8h.html#af6ea07812363481c623a23ea26fbf8ed">Warning</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Codes d'avertissement. </p>
<p>Ce sont de simples messages informatifs qui ne provoquent pas la terminaison du programme. </p>
<dl><dt><b>Valeurs énumérées: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="af6ea07812363481c623a23ea26fbf8eda5a5baa88988dd74ee8359d6e504c6d77"></a><!-- doxytag: member="WARN_HALT" ref="af6ea07812363481c623a23ea26fbf8eda5a5baa88988dd74ee8359d6e504c6d77" args="" -->WARN_HALT</em>&nbsp;</td><td>
<p>Fin normale du programme (sur HALT) </p>
</td></tr>
</table>
</dd>
</dl>

<p>Définition à la ligne <a class="el" href="error_8h_source.html#l00038">38</a> du fichier <a class="el" href="error_8h_source.html">error.h</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="error_8h.html#af6ea07812363481c623a23ea26fbf8eda5a5baa88988dd74ee8359d6e504c6d77" title="Fin normale du programme (sur HALT)">WARN_HALT</a>,      
} <a class="code" href="error_8h.html#af6ea07812363481c623a23ea26fbf8ed" title="Codes d&#39;avertissement.">Warning</a>;
</pre></div>
</div>
</div>
<hr/><h2>Documentation des fonctions</h2>
<a class="anchor" id="a531bb138b38aef758b45a442aa53938a"></a><!-- doxytag: member="error.h::error" ref="a531bb138b38aef758b45a442aa53938a" args="(Error err, unsigned addr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void error </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="error_8h.html#a2c3e4bb40f36b262a5214e2da2bca9c5">Error</a>&#160;</td>
          <td class="paramname"><em>err</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>addr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Affichage d'une erreur et fin du simulateur. </p>
<dl class="note"><dt><b>Note:</b></dt><dd>Toutes les erreurs étant fatales on ne revient jamais de cette fonction. L'attribut <em>noreturn</em> est une extension (non standard) de GNU C qui indique ce fait.</dd></dl>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">err</td><td>code de l'erreur </td></tr>
    <tr><td class="paramname">addr</td><td>adresse de l'erreur </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aec2872edfc57849ea2557178dc2b2673"></a><!-- doxytag: member="error.h::warning" ref="aec2872edfc57849ea2557178dc2b2673" args="(Warning warn, unsigned addr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void warning </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="error_8h.html#af6ea07812363481c623a23ea26fbf8ed">Warning</a>&#160;</td>
          <td class="paramname"><em>warn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>addr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Affichage d'un avertissement. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">warn</td><td>code de l'avertissement </td></tr>
    <tr><td class="paramname">addr</td><td>adresse de l'erreur </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="error_8h.html">error.h</a>      </li>
      <li class="footer">Généré le Tue May 31 2011 11:25:41 pour Simulateur du jeu d'instructions d'un processeur simple par&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>

</body>
</html>
